package 第1节循环语句;

public class AnLi11 {
    /*

    * 4 1
   ** 3 2
  *** 2 3
 **** 1 4
***** 0 5
    */
    public static void main(String[] args) {
        for (int line = 1; line <= 6; line++) {
            for(int k = 0; k < 6 - line; k++) {
                System.out.print(" ");
            }
            for (int i = 0; i < line; i++) {
                System.out.print("*");
            }
            System.out.println();
        }
    }
}
